package com.aounhui.productor.openfeign;

import com.aounhui.common.entity.Message;
import com.aounhui.common.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author aounhui
 * @version 1.0
 * @date 2021/6/30 10:51
 * @description
 */
@FeignClient(name = "improve-queue-4001")
public interface MessageServiceFeign {
    @PostMapping(value = "/queue/message/post")
    Result sendMessage(@RequestBody Message message);
}
